package com.qph.base.security.entity;

import java.io.Serializable;
import java.util.Collection;

/**
 * 
 * @author Administrator
 *
 */
public class Role implements Serializable {

	private static final long serialVersionUID = 5284068006800987377L;
	
	private Role role;//父级角色
	private String id;//角色ID
	private String name;//角色名称
	private String type;//角色类型，1 内置
	private String description;//角色描述
	private Collection<User> users;//下属用户
	private Collection<Permission> pmss;//角色权限
	private Collection<Role> roles;//下级角色
	private String enable;
	private String pid;
	
	
	public Role getRole() {
		return role;
	}
	public void setRole(Role role) {
		this.role = role;
	}
	public Collection<Role> getRoles() {
		return roles;
	}
	public void setRoles(Collection<Role> roles) {
		this.roles = roles;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * @return the users
	 */
	public Collection<User> getUsers() {
		return users;
	}
	/**
	 * @param users the users to set
	 */
	public void setUsers(Collection<User> users) {
		this.users = users;
	}
	/**
	 * @return the pmss
	 */
	public Collection<Permission> getPmss() {
		return pmss;
	}
	/**
	 * @param pmss the pmss to set
	 */
	public void setPmss(Collection<Permission> pmss) {
		this.pmss = pmss;
	}
	public String getEnable() {
		return enable;
	}
	public void setEnable(String enable) {
		this.enable = enable;
	}
	public String getPid() {
		return pid;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
	
}
